<?php 

	class Backend_Form_Authentication_Login extends UcsMvc_AbstractForm{

        public $elementDecorators = array('ViewHelper', 'Errors');

		public function init(){

            $email = new Zend_Form_Element_Text('username');
            $email
                ->setLabel($this->_translator->translate('Benutzername', $this->_language))
                ->addValidator('NotEmpty', true)
                ->addValidator('EmailAddress', true)
                ->setRequired(true);
            $this->addElement($email);

            $password = new Zend_Form_Element_Password('password');
            $password
                ->setLabel($this->_translator->translate('Passwort', $this->_language))
                ->setAttrib('class', 'type-text')
                ->setRequired(true)
                ->addValidator('NotEmpty', false, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => 'Bitte geben Sie Ihr Passwort ein.')));
            $this->addElement($password);

            $submit = new Zend_Form_Element_Submit('submit');
            $submit
                ->setAttrib('class', 'button')
                ->setDecorators($this->elementDecorators)
                ->setLabel($this->_translator->translate('Login', $this->_language));
            $this->addElement($submit);

            $this->prepareDecorators();
		}
	}